package com.hh.controller;

import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;

import java.math.BigDecimal;

@ConditionalOnBean(ClassB.class)
@ConditionalOnClass(ClassA.class)
public class ClassA {

    public static void main(String[] args) {
        BigDecimal multiply = new BigDecimal("2.00").multiply(new BigDecimal(3));
        System.out.println(multiply.doubleValue()==new BigDecimal("6.00").doubleValue());
        System.out.println(multiply.equals(new BigDecimal("6.00")));
    }
}
